package com.erp.ae.domain.enums;

import java.util.HashMap;
import java.util.Map;

/**
 * 验证码类型
 *
 * @author Lion Li
 */
public enum AliExpressInterfaceEnum {
    //授权
    token("/auth/token/create", "获取登录授权"),
    //订单,
    findOrderBaseInfo("aliexpress.trade.redefining.findorderbaseinfo", "订单基础信息查询"),
    findOrderReceiptInfo("aliexpress.trade.redefining.findorderreceiptinfo", "订单收货信息查询"),
    orderDecrypt("aliexpress.trade.seller.order.decrypt", "买家订单物流详情解密"),
    findOrderById("aliexpress.trade.new.redefining.findorderbyid", "新版交易订单详情查询"),
    getOrderList("aliexpress.trade.seller.orderlist.get", "获取订单列表"),
    //商品分组
    getProductGroups("aliexpress.product.productgroups.get", "获取店铺商品分组"),
    createProductGroup("aliexpress.postproduct.redefining.createproductgroup", "创建店铺商品分组"),
    setGroups("aliexpress.postproduct.redefining.setgroups", "设置单个产品的产品分组信息，最多设置三十个分组"),
    queryProductGroupIdByProductId("aliexpress.postproduct.redefining.queryproductgroupidbyproductid", "查询指定商品ID所在产品分组"),
    //店铺活动
    editPromotionActivity("aliexpress.marketing.limitdiscountpromotion.edit", "修改店铺活动"),
    createPromotionActivity("aliexpress.marketing.limitdiscountpromotion.create", "创建店铺活动"),
    queryByProduct("aliexpress.marketing.storepromotions.querybyproduct", "查询一个商品参加的有效的店铺活动"),
    getStorePromotionsList("aliexpress.marketing.storepromotions.list", "查询商家营销活动列表"),
    findSellerCouponActivity("aliexpress.marketing.redefining.findsellercouponactivity", "获取指定活动详细信息"),
    addPromotionProduct("aliexpress.marketing.limiteddiscountpromotion.addpromotionproduct", "添加商品至活动中"),
    editPromotionProduct("aliexpress.marketing.limitdiscountpromotionproduct.edit", "修改店铺限时限量活动商品\n"),
    delPromotionProduct("aliexpress.marketing.limitdiscountpromotionproduct.del", "删除店铺限时限量活动商品\n"),
    //店铺
    getProfile("aliexpress.merchant.profile.get", "获取店铺信息"),
    storeDiagnosis("aliexpress.merchant.diagnosis.query", "店铺诊断"),
    queryGlobalSellerRelation("global.seller.relation.query", "获取全托管商家账号列表"),
    //媒体中心
    uploadMediacenterByUrl("global.mediacenter.video.uploadbyurl", "转存视频到媒体中心"),
    mediacenterListPage("global.mediacenter.video.listpage", "查询媒体中心列表"),
    getByStorageName("global.mediacenter.video.getbystoragename", "按storeName查询单个视频信息"),
    // 物流
    createLogisticsOrder("aliexpress.logistics.order.createorder", "创建线上物流订单"),
    getOnLineLogisticsInfo("aliexpress.logistics.redefining.getonlinelogisticsinfo", "获取线上物流订单信息"),
    getLogisticsSellerAddresses("aliexpress.logistics.redefining.getlogisticsselleraddresses", "获取店铺物流收货地址"),
    queryLogisticsOrderDetail("aliexpress.logistics.querylogisticsorderdetail", "获取物流订单信息详情"),
    getPrintInfo("aliexpress.logistics.redefining.getprintinfo", "获取线上发货标签"),
    orderShipment("aliexpress.logistics.order.shipment", "子单声明发货"),
    handoverCommit("cainiao.global.handover.commit", "提交菜鸟交接单"),
    getHandoverPdf("cainiao.global.handover.pdf.get", "打印pdf版交接单"),
    queryHandoverContent("cainiao.global.handover.content.query", "查询交接单信息"),
    //商品
    categoryList("aliexpress.category.tree.list", "获取分类列表"),
    brandsList("global.seller.brands.list", "获取品牌列表"),
    deleteProduct("aliexpress.offer.product.delete", "删除商品"),
    onLineAeProduct("aliexpress.postproduct.redefining.onlineaeproduct", "商品上架"),
    productPost("aliexpress.offer.product.post", "商品上传/商品发布"),
    offlineAeProduct("aliexpress.postproduct.redefining.offlineaeproduct", "商品下架"),
    getEUResponsiblePerson("aliexpress.category.eu.responsible.persons.list", "获取欧盟负责人"),
    queryPromiseTemplateById("aliexpress.postproduct.redefining.querypromisetemplatebyid", "获取服务模板"),
    getFreightSettingByTemplateQuery("aliexpress.freight.redefining.getfreightsettingbytemplatequery", "通过模板ID获取单个运费模板内容"),
    listFreightTemplate("aliexpress.freight.redefining.listfreighttemplate", "获取店铺运费模板"),
    queryProduct("aliexpress.offer.product.query", "获取商品信息"),
    getChildAttributesResultByPostCateIdAndPath("aliexpress.category.redefining.getchildattributesresultbypostcateidandpath", "根据发布类目id、父属性路径（可选）获取子属性信息 )"),
    findAeProductById("aliexpress.postproduct.redefining.findaeproductbyid", "获取商品信息"),
    productEdit("aliexpress.offer.product.edit", "商品修改"),
    findAeProductStatusById("aliexpress.postproduct.redefining.findaeproductstatusbyid", "获取商品状态"),
    categoryQualificationsList("aliexpress.category.qualifications.list", "类目资质信息"),
    editSimpleProductFiled("aliexpress.postproduct.redefining.editsimpleproductfiled", "简单修改产品信息"),
    pageQueryProblem("aliexpress.product.diagnosis.pageQueryProblem", "查询店铺有问题的产品信息"),


    end("end", "获取分类列表")
    ;

    private final String code;
    private final String info;


    AliExpressInterfaceEnum(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

//    public static Map<String,Object> getShipsFromCountryMap() {
//        Map<String, Object> shipsFromCountryMap = new HashMap<>();
//
//        shipsFromCountryMap.put(RU.getInfo(),RU.getCode());
//        shipsFromCountryMap.put(CN.getInfo(),CN.getCode());
//        shipsFromCountryMap.put(FR.getInfo(),FR.getCode());
//        shipsFromCountryMap.put(IT.getInfo(),IT.getCode());
//        shipsFromCountryMap.put(IL.getInfo(),IL.getCode());
//        shipsFromCountryMap.put(DE.getInfo(),DE.getCode());
//        shipsFromCountryMap.put(US.getInfo(),US.getCode());
//        shipsFromCountryMap.put(ES.getInfo(),ES.getCode());
//
//
//        return shipsFromCountryMap;
//    }

}
